package com.freewater.cargotracker.infrastructure.persistence.mybatis.mapper;

import com.freewater.cargotracker.infrastructure.persistence.mybatis.dbobject.CargoCustomerPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CargoCustomerMapper {

    int insert(CargoCustomerPO cargoCustomerPO);

    int insertAll(List<CargoCustomerPO> cargoCustomerPOs);

    int deleteByPrimaryKey(CargoCustomerPO primaryKey);

    int deleteByCargoId(@Param("cargoId") Long cargoId);

    int deleteAll();
}
